//
//  RBVideoControlsView.h
//  RBVideoPlayer
//
//  Created by Lan on 2017/8/4.
//  Copyright © 2017年 SummerTea. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RBMediaSlider.h"

typedef NS_ENUM(NSUInteger, RBVideoSwipeDirection)
{
    RBVideoSwipeDirectionHor = 1,       /**<播放进度*/
    RBVideoSwipeDirectionLeftVer = 2,   /**<亮度*/
    RBVideoSwipeDirectionRightVer = 3,  /**<音量*/
};

@interface RBVideoControlsView : UIView

//controls
@property(nonatomic, strong) UIView *topBar;
@property(nonatomic, strong) UIButton *backBtn;
@property(nonatomic, strong) UILabel *titleLabel;
@property(nonatomic, strong) UIButton *rateBtn;

@property(nonatomic, strong) UIView *bottomBar;
@property(nonatomic, strong) UIButton *playBtn;
@property(nonatomic, strong) UILabel *currentTimeLabel;
@property(nonatomic, strong) RBMediaSlider *slider;
@property(nonatomic, strong) UILabel *durationLabel;
@property(nonatomic, strong) UIButton *fullScreenBtn;

@property(nonatomic, strong) UIButton *lockScreenBtn;
@property(nonatomic, strong) UIProgressView *fullScreenProgressView;

@property(nonatomic, strong) UILabel *tipView;
@property(nonatomic, strong) UIActivityIndicatorView *indicatorView;
@property(nonatomic, strong) UIView *gesResponseView;

@property(nonatomic, assign) BOOL playing;

@property(nonatomic, copy) void(^doubleTapBlock)();
@property(nonatomic, copy) void(^swipeBlock)(RBVideoSwipeDirection direction, CGFloat progress, BOOL end);

@end

/** 
    下层: tipView
    上层: topBar gesResponseView bottomBar从上到下,首尾相接铺满屏幕
 */
